import random

var_1: int = 10
print(type(var_1), var_1, sep='')


class Student:
    pass


stu: Student = Student()
print(type(stu), stu)

my_list: list = [1, 2, 3]
my_tuple: tuple = (1, 'hello', False)
my_dict: dict = {"key": 123}

print(my_list)
print(my_tuple)
print(my_dict)

# 详细的类型注解
my_list: list[int] = [1, 2, 3]
my_tuple: tuple[int, str, bool] = (1, 'hello', False)
my_dict: dict[str, int] = {"key": 123}

# 注释 类型注解
# type: int
var_1 = random.randint(1, 10)

var_2 = Student()  # type: Student


def add(a: int, b: int) -> int:
    return a + b


print(add(10, 20))
